home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Kit PC World De Ampliacion De Windows 95
/
Kit PC World de ampliacion de Windows 95.iso
/
clarion
/
gauge
/
gauge.z
/
DDIALOG1.PAS
< prev
next >
Wrap
Pascal/Delphi Source File
|
1995-08-16
|
2KB
|
90 lines
unit DDialog1;
interface
uses WinTypes, WinProcs, Classes, Graphics, Forms, Controls, Buttons,
StdCtrls, ExtCtrls, Spin, Mask;
type
TPersonalInfo = class(TForm)
OKButton: TButton;
CancelButton: TButton;
Label1: TLabel;
Label2: TLabel;
Label3: TLabel;
Label4: TLabel;
Label5: TLabel;
Label6: TLabel;
Label7: TLabel;
GroupBox2: TGroupBox;
RadioGroup1: TRadioGroup;
RadioButton1: TRadioButton;
RadioButton2: TRadioButton;
RadioButton3: TRadioButton;
CheckBox1: TCheckBox;
CheckBox2: TCheckBox;
CheckBox3: TCheckBox;
Edit2: TEdit;
Edit3: TEdit;
Edit4: TEdit;
Edit5: TEdit;
Edit1: TEdit;
Label8: TLabel;
Label9: TLabel;
SpinEdit1: TSpinEdit;
ComboBox1: TComboBox;
MaskEdit1: TMaskEdit;
MaskEdit2: TMaskEdit;
procedure CancelClick(Sender: TObject);
procedure PaintForm(Sender: TObject);
procedure Edit2Enter(Sender: TObject);
private
{ Private declarations }
public
{ Public declarations }
end;
var
PersonalInfo: TPersonalInfo;
WindowHandle: LongInt;
implementation
{$R *.DFM}
procedure TPersonalInfo.CancelClick(Sender: TObject);
begin
PersonalInfo.Close;
end;
procedure TPersonalInfo.PaintForm(Sender: TObject);
begin
PersonalInfo.Update;
Edit2.SetFocus;
end;
procedure TPersonalInfo.Edit2Enter(Sender: TObject);
begin
Edit1.Text := 'John Smith';
Edit2.Text := '1234 Main Street';
Edit3.Text := 'Anywhere';
Edit4.Text := 'USA';
Edit5.Text := '10000';
MaskEdit1.Text := '4443456789';
MaskEdit2.Text := '4443455678';
ComboBox1.Items.Add('Single');
ComboBox1.Items.Add('Married');
ComboBox1.Items.Add('Divorced');
ComboBox1.Items.Add('Widowed');
ComboBox1.Text := 'Single';
SpinEdit1.Value := 0;
RadioButton1.Checked := True;
CheckBox1.Checked := True;
CheckBox2.Checked := True;
CheckBox3.Checked := True;
Edit1.SetFocus;
CancelButton.Click;
end;
end.